import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
// import  Cart from '../components/cart'

import  Cart from '@/components/cart'
import  Cart2 from '@/components/cart2'

import  News from '@/components/news'


let router= new Router({
  // mode:'history',
  routes: [
    {path:'/',redirect:'/news'},
    {
      path: '/cart',
      name: 'cart',
      component: Cart
    },
    {
      path: '/cart2',
      name: 'cart2',
      component: Cart2
    },
    {
      path: '/news',
      name: 'news',
      component: News
    }
  ]
})

export default  router
